package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 游记管理对象 tour_travel_notes
 *
 * @author once
 * @date 2020-10-02
 */
public class TourTravelNotes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 游记ID */
    private Long travelNotesId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 游记标题 */
    @Excel(name = "游记标题")
    private String travelNotesTitle;

    /** 游记内容 */
    @Excel(name = "游记内容")
    private String travelNotes;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private String isDelete;

    /** 当前状态 */
    @Excel(name = "当前状态")
    private String status;

    /** 审核管理员ID */
    @Excel(name = "审核管理员ID")
    private Long managerId;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;

    /** 被点赞次数 */
    @Excel(name = "被点赞次数")
    private Long likedNumber;

    public void setTravelNotesId(Long travelNotesId)
    {
        this.travelNotesId = travelNotesId;
    }

    public Long getTravelNotesId()
    {
        return travelNotesId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setTravelNotesTitle(String travelNotesTitle)
    {
        this.travelNotesTitle = travelNotesTitle;
    }

    public String getTravelNotesTitle()
    {
        return travelNotesTitle;
    }
    public void setTravelNotes(String travelNotes)
    {
        this.travelNotes = travelNotes;
    }

    public String getTravelNotes()
    {
        return travelNotes;
    }
    public void setIsDelete(String isDelete)
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete()
    {
        return isDelete;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setManagerId(Long managerId)
    {
        this.managerId = managerId;
    }

    public Long getManagerId()
    {
        return managerId;
    }
    public void setCheckTime(Date checkTime)
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime()
    {
        return checkTime;
    }
    public void setLikedNumber(Long likedNumber)
    {
        this.likedNumber = likedNumber;
    }

    public Long getLikedNumber()
    {
        return likedNumber;
    }
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    public void setCreatetime(Date checkTime) {
        this.createtime = checkTime;
    }



    public Date getCreatetime() {
        return createtime;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("travelNotesId", getTravelNotesId())
            .append("userId", getUserId())
            .append("travelNotesTitle", getTravelNotesTitle())
            .append("travelNotes", getTravelNotes())
            .append("createtime", getCreatetime())
            .append("isDelete", getIsDelete())
            .append("status", getStatus())
            .append("managerId", getManagerId())
            .append("checkTime", getCheckTime())
            .append("likedNumber", getLikedNumber())
            .toString();
    }
}
